﻿<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="../js/angular.js"></script>
</head>
<body ng-app="">

隐藏 HTML: <input type="checkbox" ng-model="myVar">

<div ng-hide="myVar">
<h1>Welcome</h1>
<p>Welcome to my home.</p>
</div>

</body>
</html>